package kr.hkit.powerjava.chapter08.Programming;

public class Circle {

	private double r, cx, cy;
	static final double PI = 3.14;

	public double getR() {
		return r;
	}

	public void setR(double r) {
		this.r = r;
	}

	public double getCx() {
		return cx;
	}

	public void setCx(double cx) {
		this.cx = cx;
	}

	public double getCy() {
		return cy;
	}

	public void setCy(double cy) {
		this.cy = cy;
	}
	
	public double area(){
		return r * r * PI;
	}

	@Override
	public String toString() {
		return "Circle [반지름 =" + r + ", 원의 중심 (" + cx + ", " + cy + "), 원의 넓이는" + area() + "]";
	}
	
	
}
